package com.guoyu.gserv.entity;

import java.io.Serializable;
import java.sql.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
@Entity
public class Collections implements Serializable {
	private int collId,userId;
	private CallInfo callInfo;
	private Date collTime;
	private String remark;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public int getCollId() {
		return collId;
	}
	public void setCollId(int collId) {
		this.collId = collId;
	}
	@ManyToOne(fetch=FetchType.EAGER)
    @JoinColumn(name="callId")
	public CallInfo getCallInfo() {
		return callInfo;
	}
	public void setCallInfo(CallInfo callInfo) {
		this.callInfo = callInfo;
	}
	public Date getCollTime() {
		return collTime;
	}
	public void setCollTime(Date collTime) {
		this.collTime = collTime;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	
}
